The Term Graph Programming System HOPS

نویسنده

  • Wolfram Kahl
چکیده

Wolfram Kahl Universit at der Bundeswehr M unchen, D-85577 Neubiberg, Germany 1 Motivation Programmers of Haskell or ML know that once their programs are syntactically correct and get past the type checker, the probability that they are correct is usually already pretty high. But while the parser or the type checker still complain, it is not always easy to spot the real problem, which may be far from the trouble spot indicated by the often cryptic error message. Syntax-directed editing can solve the problem with syntax errors. But, even if a syntax-directed editor would be extended with online typing, another problem would be how to present the typing information to the user; huge type expressions with unclear relation to the program expression may perhaps be of only very little help. We present a system that deals with both problems by making the program structure and the program's typing structure explicit and interactively accessible in the shape of term graphs. The Higher Object Programming System HOPS, which has been developed by a group led by Gunther Schmidt since the mid-eighties [ZSB86,Kah94], is a graphically interactive term graph editing and transformation system designed for transformational program development. All drawings in this not have been generated from the term graph interface of the latest version of HOPS. 2 Principles of HOPS HOPS manipulates arbitrary second-order term graphs, where all the structure usually encoded via name and scope is made explicit. Term graphs in HOPS therefore feature nameless variables, explicit variable binding , explicit variable identity (to denote which nodes stand for the same variables) and metavariables with arbitrary arity. All the problems usually connected with name clashes and variable renaming are therefore avoided. Consider the following examples: + × 2 × 1 λ

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Declarative Term Graph Attribution for Program Generation

We show how the declarative spirit of attribute grammars can be employed to define an attribution mechanism for term graphs, where the non-uniqueness of inherited attributes demands an appropriately generalised treatment. Since term graphs are a useful data structure for symbolic computation systems such as theorem provers or program transformation systems, this mechanism provides a powerful me...

متن کامل

اثرات مواجهه پری ناتال عصاره الکلی گل رازک (Humulus lupulus) بر بلوغ جنسی و برخی شاخص‌های تولیدمثلی موش‌های سوری ماده

Background: Humulus lupulus (Hops) is well-known throughout the world as the raw material in the brewing industry. In addition, hops have been found to have estrogenic and antioxidant properties. The object of this study aimed to examine the effects of hops during gestation and lactation on the onset of puberty, estrus cycle, reproductive organ weights and fertility index in female mice. Metho...

متن کامل

Smart load shedding and distributed generation resources rescheduling to improve distribution system restoration performance

After a permanent fault occurs if it is not possible to supply the load in the network, the optimal load restoration scheme allows the system to restoration the load with the lowest exit cost, the lowest load interruption, and in the shortest possible time. This article introduces a new design called Smart Load Shedding, abbreviated SLS. In the proposed SLS scheme, the types of devices in smart...

متن کامل

Stochastic Short-Term Hydro-Thermal Scheduling Based on Mixed Integer Programming with Volatile Wind Power Generation

This study addresses a stochastic structure for generation companies (GenCoʼs) that participate in hydro-thermal self-scheduling with a wind power plant on short-term scheduling for simultaneous reserve energy and energy market. In stochastic scheduling of HTSS with a wind power plant, in addition to various types of uncertainties such as energy price, spinning /non-spinning reserve prices, unc...

متن کامل

Medium Term Hydroelectric Production Planning - A Multistage Stochastic Optimization Model

Multistage stochastic programming is a key technology for making decisions over time in an uncertain environment. One of the promising areas in which this technology is implementable, is medium term planning of electricity production and trading where decision makers are typically faced with uncertain parameters (such as future demands and market prices) that can be described by stochastic proc...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1999